<?php 
 
namespace app\common\model;

use app\common\model\BaseModel;
use app\common\traits\ModelTrait;
use app\common\utils\JsonService;
/**
* This is the model class for table "{ptf_goods_collect}".
*
* @property int $collect_id 表id 
* @property int $member_id 用户id 
* @property int $goods_id 商品id 
* @property int $shop_id 店铺id 
* @property int $type 类型,0:商品收藏,1:店铺收藏 
* @property int $create_time 添加时间 
*/
class GoodsCollect extends BaseModel{

    protected $pk = 'collect_id';
    protected $name = 'goods_collect';

    use ModelTrait;
    protected $autoWriteTimestamp = true;
    //protected $dateFormat = 'Y-m-d';
    protected $createTime = 'create_time';
    //protected $updateTime = 'update_time';

    /**
    * {@inheritdoc}
    */
    public function attributeLabels()
    {
        return [
            'collect_id' => '表id',
            'member_id' => '用户id',
            'goods_id' => '商品id',
            'shop_id' => '店铺id',
            'type' => '类型,0:商品收藏,1:店铺收藏',
            'create_time' => '添加时间',
        ];
    }

}


?>